package com.wangshidai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wangshidai.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangshidai.reply.rolereply.QueryRoleNameReply;
import com.wangshidai.util.BusinessException;

/**
 *
 */
public interface SysRoleService extends IService<SysRole> {
    boolean queryRoleName(Page<QueryRoleNameReply> page, String name);

    boolean insertRole(SysRole role) throws BusinessException;

    boolean alterRole(SysRole role) throws BusinessException;

    boolean deleteRoleById(long id);
}
